package com.example.oop.tutor;

import com.example.oop.person.Student;
import com.example.oop.skill.Skill;
import com.example.oop.timeslot.FixedDateTimeSlot;

import java.util.Set;

public class LocalTutorGroupMeeting extends TutorGroupMeeting {
    private String room;

    public String getRoom(){
        return room;
    }

    public LocalTutorGroupMeeting(FixedDateTimeSlot timeSlot, TutorGroup tutorGroup, Skill skillToPratise, String room){
        super(timeSlot,tutorGroup,skillToPratise);
        this.room = room;
    }


    @Override
    public void practise() {
        getTutorGroup().getTutor().say("Thank you for coming to "+room+" today.");
        Set<Student> students =
                getTutorGroup().getStudents();
        students.forEach(e->{
            e.learnSkill(getSkillToPractise());
        });
        getTutorGroup().getTutor().say("See you next time!");
    }
}
